﻿using UnityEngine;
using System.Collections;

public class LayerList  {

	public static  int layerUI = 1 << LayerMask.NameToLayer("ui");
	public static int layerNpc = LayerMask.NameToLayer("npc");
	public static int layerHero = LayerMask.NameToLayer("myself");
	public static int layerPlayer = LayerMask.NameToLayer("player");
	public static int layerStaticObj = LayerMask.NameToLayer("staticobj");
	public static int layerEffect = LayerMask.NameToLayer("effect");
	public static int layerTerrain = 1<< LayerMask.NameToLayer("terrain");
	public static int layerBuilding =1<< LayerMask.NameToLayer("building");
	public static int layerAirWall = LayerMask.NameToLayer("airwall");
	public static int layerBackEffect = LayerMask.NameToLayer("backeffect");
	public static int layerItem = 1 << LayerMask.NameToLayer("object_no_occlusion");
//	public static int layerSelectMask = (1 << LayerMask.NameToLayer("npc")) | (1 << LayerMask.NameToLayer("player")) | (1 << LayerMask.NameToLayer("staticobj")|(1<<LayerMask.NameToLayer("terrain"))|(1<<LayerMask.NameToLayer("building")));
	public static int layerSelectMask = (1 << LayerMask.NameToLayer("npc")) | /*(1 << LayerMask.NameToLayer("player")) |*/ (1 << LayerMask.NameToLayer("staticobj")|(1<<LayerMask.NameToLayer("terrain"))|(1<<LayerMask.NameToLayer("building")));
	public static int layerPlayerMask = (1<<layerPlayer);
	public static int layerGuidMask = (1 << LayerMask.NameToLayer("npc"));

	public static int layerCameraBaseMask = 
			(1 << LayerMask.NameToLayer("Default"))|
			(1 << LayerMask.NameToLayer("floor"))|
			(1 << LayerMask.NameToLayer("staticobj")|
			(1 << LayerMask.NameToLayer("enemy"))|
			 (1 << LayerMask.NameToLayer("ally"))|
			 (1 << LayerMask.NameToLayer("myself"))|
			 (1 << LayerMask.NameToLayer("npc"))|
			 (1 << LayerMask.NameToLayer("monster"))|
			 (1 << LayerMask.NameToLayer("airwall"))|
			 (1 << LayerMask.NameToLayer("camera"))|
			 (1 << LayerMask.NameToLayer("effect"))|
			 (1 << LayerMask.NameToLayer("perview"))|
			 (1 << LayerMask.NameToLayer("trigger"))|
			 (1 << LayerMask.NameToLayer("player"))|
			 (1 << LayerMask.NameToLayer("water"))|
			 (1 << LayerMask.NameToLayer("terrain"))|
			 (1 << LayerMask.NameToLayer("building"))|
			 (1 << LayerMask.NameToLayer("object_no_occlusion"))|
			 (1 << LayerMask.NameToLayer("scene_effect"))|
			 (1 << LayerMask.NameToLayer("ui_vfx"))|
			 (1 << LayerMask.NameToLayer("enemy")));

	public static int layerCameraStartCambatSkillMask = 
		//(1 << LayerMask.NameToLayer("Default"))|
		(1 << LayerMask.NameToLayer("floor"))|
			(1 << LayerMask.NameToLayer("staticobj")|
			 (1 << LayerMask.NameToLayer("enemy"))|
			 (1 << LayerMask.NameToLayer("ally"))|
		//	 (1 << LayerMask.NameToLayer("myself"))|
			 (1 << LayerMask.NameToLayer("npc"))|
			 (1 << LayerMask.NameToLayer("monster"))|
			 (1 << LayerMask.NameToLayer("airwall"))|
			 (1 << LayerMask.NameToLayer("camera"))|
			 (1 << LayerMask.NameToLayer("effect"))|
			 (1 << LayerMask.NameToLayer("perview"))|
			 (1 << LayerMask.NameToLayer("trigger"))|
			 (1 << LayerMask.NameToLayer("player"))|
			 (1 << LayerMask.NameToLayer("water"))|
			 (1 << LayerMask.NameToLayer("terrain"))|
			 (1 << LayerMask.NameToLayer("building"))|
			 (1 << LayerMask.NameToLayer("object_no_occlusion"))|
			 (1 << LayerMask.NameToLayer("scene_effect"))|
			 (1 << LayerMask.NameToLayer("ui_vfx"))|
			 (1 << LayerMask.NameToLayer("enemy")));

	public static int layerCameraKeepCambatSkillMask = //(1 << LayerMask.NameToLayer("Default")) | 
		(1 << LayerMask.NameToLayer("backeffect")) | 
		(1 << LayerMask.NameToLayer ("myself"));

}
